123456/PO PHP H5/Ifra - Nisrine/film.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <div class="menubalk"> <a border="10" href="studio.php">studio's</a> <a href="film.php">films</a> <a href="characters.php">characters</a> <a href="personen.php">personen</a> </div> <?php include("db.php"); $query = "select * from films"; $result = mysqli_query($db, $query); echo "<h3> films</h3>"; while($row = mysqli_fetch_array($result)){ echo "<div><a href='filmdetails.php?filmid=$row[filmid]'> - $row[titel]</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse